﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ePlanet.ArchiveMange.Services;
using DreamBuilder.Common;
using ePlanet.ArchiveMange.DataAccess;

namespace ePlanet.ArchiveMange.Business
{
    public class BUSZongheVolFile : BusinessBase, IZongheVolFileService
    {
        ZongheVolFileDAL dal = new ZongheVolFileDAL();
        ArchiveCommon commonDal = new ArchiveCommon();
        #region IZongheVolFile 成员

        public Models.ArchiveMangeModal.OLISEARCH_ZONGHE_VOL_FILEDataTable GetAllZongheVolFileData()
        {
            return dal.GetAllZongheVolFileData();
        }

        public Models.ArchiveMangeModal.OLISEARCH_ZONGHE_VOL_FILEDataTable GetAllZongheVolFileDataById(string DATAID)
        {
            return dal.GetAllZongheVolFileDataById(DATAID);
        }

        public Models.ArchiveMangeModal.OLISEARCH_ZONGHE_VOL_FILEDataTable GetAllDocumenArchivetByFilter(string filter)
        {
            return dal.GetAllDocumenArchivetByFilter(filter);
        }

        public System.Data.DataTable GetZongheVolFileDataByIds(IEnumerable<string> idList)
        {
            return dal.GetZongheVolFileDataByIds(idList);
        }

        public System.Data.DataTable GetHandoverDataByIds(IEnumerable<string> idList)
        {
            return dal.GetHandoverDataByIds(idList);
        }

        public System.Data.DataTable GetZongheVolFileDateSpanByIds(IEnumerable<string> idList)
        {
            return dal.GetZongheVolFileDataByIds(idList);
        }

        public Models.ArchiveMangeModal.OLISEARCH_ZONGHE_VOL_FILEDataTable GetZongheVolFileDataByType(string archiveType)
        {
            return dal.GetZongheVolFileDataByType(archiveType);
        }

        #endregion

        #region IArchiveBase 成员

        public bool SaveData(System.Data.DataSet ds)
        {
            return commonDal.SaveData(ds);
        }

        public bool SaveAttach(System.Data.DataTable dt_Attach, string objectTableName, string objectID, string DBHelperString)
        {
            return commonDal.SaveAttach(dt_Attach, objectTableName, objectID, DBHelperString);
        }

        public byte[] GetAttachContentByID(string dataID, string DBHelperString)
        {
            return commonDal.GetAttachContentByID(dataID, DBHelperString);
        }

        public System.Data.DataSet GetAttach(string ObjectID, string DBHelperString)
        {
            return commonDal.GetAttach(ObjectID, DBHelperString);
        }

        public bool IsSameSecret(List<Guid> dataIDList)
        {
            return dal.IsSameSecret(dataIDList);
        }

        public bool DeleteData(string key)
        {
            return dal.DeleteData(key);
        }

        #endregion
    }
}
